﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WpfWordsLearner.Converters
{
	public sealed class NullToVisibility : System.Windows.Data.IValueConverter
	{
		public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			if (value == null)
				return System.Windows.Visibility.Collapsed;
			return System.Windows.Visibility.Visible;
		}

		public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			throw new NotImplementedException();
		}
	}
}
